<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/admin/publishversion/index" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>

<body>

  <div class="page">
    <div class="page-hd">
      <h1>版本列表</h1>
    </div>

    <div class="navbar">
      <ul class="nav">
        <li class="active"><a href="#">版本列表</a>
        </li>
        <li><a href="{:URL('admin/PublishVersion/publishversion')}">发布版本</a>
        </li>
      </ul>
    </div>

    <div class="form">
      <form method="post" action="{:URL('admin/PublishVersion/index')}">
        <label>版本类型：</label>
        <select name="version_type" id="version_type" onchange="qiehuan(this.options[this.options.selectedIndex].value)">
          <option value="0">请选择版本类型</option>
          <volist name="searchlist" id="searchlist">
            <option value="{$searchlist.version_type}" <eq name="version_type" value="$searchlist.version_type">selected</eq>>
              <if condition="$searchlist.version_type eq 'oceanversion'">
                软件版本
                <elseif condition="$searchlist.version_type eq 'appversion'" />应用版本
                <elseif condition="$searchlist.version_type eq 'pluginversion'" />插件版本
              </if>
            </option>
          </volist>
        </select>
        <label>版本名称:</label>
        <input class="input2" type="text" name="version_name" id="version_name" value="{$version_name}" />
        <label>发布时间:</label>
        <input class="input2" type="text" name="start_time" id="start_time" value="{$start_time}" onfocus="WdatePicker({dateFmt:'yyyy-M-d',isShowWeek:true});" readonly="readonly" />-
        <input class="input2" type="text" name="end_time" id="end_time" value="{$end_time}" onfocus="WdatePicker({dateFmt:'yyyy-M-d',isShowWeek:true});" />
        <input class="btn_b" style="*width: 70px;" type="submit" value="搜索" />
      </form>
    </div>

    <div class="datas">
      <div class="datas-bd">
        <table class="table">
          <tr>
            <th style="">
              <input type="checkbox" id="checkbox_handle" onclick="checkAll(this)" value="0">
            </th>
            <th style="">ID</th>
            <th style="">版本类型</th>
            <th style="">版本名称</th>
            <th style="">版本文件</th>
            <th style="">发布时间</th>
            <th style="">操作</th>
          </tr>
          <volist id="list" name="list">
            <tr id="{$list['id']}">
              <td>
                <input type="checkbox" name="checkbox" id="checkbox2" onclick="checkon(this)" value="{$list['id']}">

              </td>
              <td>{$list['id']}</td>
              <td>
                <if condition="$list.version_type eq 'oceanversion'">
                  软件版本
                  <elseif condition="$list.version_type eq 'appversion'" />应用版本
                  <elseif condition="$list.version_type eq 'pluginversion'" />插件版本
                </if>
              </td>
              <td>{$list['version_name']}</td>
              <td>{$list['filename']}</td>
              <td>{$list['publish_time']|date="Y-m-d",###}</td>
              <td>
                <a href="javascript:;" onclick="javascript:location.href='{:URL('admin/PublishVersion/downloadFile',array('id'=>$list['id']))}'">下载</a> |
                <a href="javascript:;" onclick="javascript:location.href='{:URL('admin/PublishVersion/update_publishversion',array('id'=>$list['id']))}'">修改</a> |
                <a href="javascript:;" onclick="deleteVersion('{$list.id}')">删除</a>
              </td>
            </tr>
          </volist>
        </table>
      </div>

      <div class="datas-ft">
        <div class="actions">
          <a href="{:URL('admin/PublishVersion/publishversion')}" class="btn">发布版本</a>
          <a href="#" class="btn">批量删除</a>
        </div>

        <div class="pager">{$page}</div>
      </div>
    </div>

  </div>
</body>

</html>
